package org.mspring.mlog.redis;

import org.mspring.mlog.entity.Config;
import org.mspring.nbee.redis.AbstractRedisValueService;
import org.mspring.nbee.redis.serializer.JsonSerializer;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.stereotype.Component;

/**
 * @author Gao Youbo
 * @since 2015/4/5.
 */
@Component
public class ConfigRedisValueService extends AbstractRedisValueService<Config> {
    public ConfigRedisValueService() {
    }

    @Override
    protected RedisSerializer<Config> getValueSerializer() {
        return new JsonSerializer<>(Config.class);
    }
}
